/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcGetMsgRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mMsgID;
/*    */   private String mRead;
/*    */   
/*    */   public void setMsgToGet(String f)
/*    */   {
/* 34 */     this.mMsgID = f;
/*    */   }
/*    */   
/* 37 */   public void setRead(String r) { this.mRead = r; }
/*    */   
/* 39 */   public String getMsgToGet() { return this.mMsgID; }
/*    */   
/* 41 */   public String getRead() { return this.mRead; }
/*    */   
/*    */   protected Element getRequestXML()
/*    */   {
/* 45 */     Element request = DocumentHelper.createElement(MailConstants.GET_MSG_REQUEST);
/* 46 */     Element m = DomUtil.add(request, "m", "");
/* 47 */     DomUtil.addAttr(m, "id", this.mMsgID);
/* 48 */     addAttrNotNull(m, "read", this.mRead);
/* 49 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException, LmcSoapClientException
/*    */   {
/* 55 */     LmcGetMsgResponse response = new LmcGetMsgResponse();
/* 56 */     response.setMsg(parseMessage(DomUtil.get(responseXML, "m")));
/* 57 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcGetMsgRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */